| Oracle® Enterprise Manager Lifecycle Management Administrator's Guide 12c Release 3 (12.1.0.3) Part Number E27046-15 |
|
|
PDF · Mobi · ePub |
This chapter explains how you can manage pluggable databases using Oracle Enterprise Manager Cloud Control (Cloud Control). In particular, this chapter covers the following:
This section helps you get started with this chapter by providing an overview of the steps involved in creating, cloning, and unplugging pluggable databases (PDBs). Consider this section to be a documentation map to understand the sequence of actions you must perform to successfully create, clone, and unplug PDBs using Cloud Control. Click the reference links provided against the steps to reach the relevant sections that provide more information.
Table 16-1 Getting Started with Pluggable Databases
| Step | Description | Reference Links |
|---|---|---|
|
Step 1 |
Obtaining an Overview Obtain a conceptual overview of PDBs. |
To obtain a conceptual overview of PDBs, see Overview. |
|
Step 2 |
Selecting the Use Case Among the following use cases, select the one that best matches your requirement:
|
|
|
Step 3 |
Meeting the Prerequisites Meet the prerequisites for the selected use case. |
|
|
Step 4 |
Following the Procedure Follow the procedure for the selected use case. |
An Oracle Database can contain a portable collection of schemas, schema objects, and nonschema objects, that appear to an Oracle Net client as a separate database. This self-contained collection is called a pluggable database (PDB). A multitenant container database (CDB) is a database that includes one or more PDBs. Oracle Database 12c Release 1 (12.1) and later versions allow you to create many PDBs within a single CDB. Applications that connect to databases view PDBs and earlier versions of Oracle Database (earlier than 12.1) in the same manner.
Cloud Control enables administrators to manage the entire PDB lifecycle, including provisioning CDBs, provisioning PDBs (from the seed or from an unplugged PDB), cloning existing PDBs, migrating non-CDBs as PDBs, and unplugging PDBs.
Important:
To manage the PDB lifecycle using Cloud Control, you must have the 12.1.0.3 Enterprise Manager for Oracle Database plug-in, or a later version, deployed.For information on how to deploy a plug-in and upgrade an existing plug-in, view the Using Plug-Ins chapter of the Oracle Enterprise Manager Administrator's Guide.
Figure 16-1 provides a graphical overview of the PDB provisioning solution in Cloud Control.
For more information about PDBs and CDBs, refer the Managing Pluggable Databases part in Oracle Database Administrator's Guide.
You can provision PDBs by creating a new PDB within a CDB, by cloning an existing PDB, or by migrating existing non-CDBs to a CDB as PDBs. You can also use unplugged PDBs for provisioning, by plugging them into a CDB.
This section provides information about provisioning a PDB. In particular, it contains the following:
This section provides information about creating a new PDB. In particular, it contains the following:
Oracle Software Library (Software Library) must be set up in Cloud Control.
For information on how to set up Software Library in Cloud Control, refer Setting Up Oracle Software Library.
The CDB within which you want to create a PDB must exist, and must be a Cloud Control target.
Note:
For information on how to create a new CDB, refer to Chapter 15.The CDB (within which you want to create a PDB) must not be in read-only, upgrade, or downgrade mode.
The target host user must be the owner of the Oracle home that the CDB (within which you want to create the PDB) belongs to.
To create a new PDB in a CDB, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Database Provisioning. In the Database Provisioning page, in the Related Links section of the left menu pane, click Provision Pluggable Databases.
Note:
You can also access the Provision Pluggable Database Console from the home page of the CDB. To do so, in the CDB's home page, from the Oracle Database menu, select Provisioning, then select Provision Pluggable Database.In the Provision Pluggable Database Console, in the CDB section, select the CDB within which you want to create new PDBs.
Note:
Skip this step if you have accessed the Provision Pluggable Database Console from the CDB's home page.In the PDB Operations section, select Create Pluggable Databases.
Click Launch.
Figure 16-2 displays the Provision Pluggable Database Console.
Note:
You will be prompted to log in to the database if you have not already logged in to it through Enterprise Manager. Make sure you log in using sysdba user account credentials.In the Source page of the Create Pluggable Database Wizard, in the Source Type section, select Create a new PDB.
In the CDB Host Credentials section, select or specify the target CDB Oracle home owner host credentials. If you have already registered the credentials with Enterprise Manager, you can select Preferred or Named. Otherwise, you can select New and enter the credentials.
Figure 16-3 displays the Source page.
Click Next.
In the Identification page, enter a unique name for the PDB you are creating.
If you prefer to create more than one PDB in this procedure, then select Create Multiple PDBs, and set the number of PDBs you want to create. Note that you can create a maximum of 252 PDBs.
Note:
If you choose to create multiple PDBs, then the unique name you enter here is used as a prefix for all PDBs, and the suffix is a numeric value that indicates the count of PDBs.For example, if you create five PDBs with the name accountsPDB, then the PDBs are created with the names accountsPDB1, accountsPDB2, accountsPDB3, accountsPDB4, and accountsPDB5.
In the PDB Administrator section, enter the credentials of the admin user account you need to create for administering the PDB.
Figure 16-4 displays the Identification page.
Note:
If you choose to create multiple PDBs, then for each PDB an admin user account is created with the same set of credentials you enter here. So multiple admin user accounts are created, one per PDB, but the user accounts have the same credentials.Click Next.
In the Storage page, select the type of location where you want to store the datafiles.
If the target CDB (CDB in which you are creating the PDB) is enabled with Oracle Managed Files and if you want to use the same, then select Use Oracle Managed Files (OMF).
If you want to enter a custom location, then select Use Common Location for PDB Datafiles. Select the storage type and the location where the datafiles can be stored.
In the Temporary Working Directory section, enter a location where the temporary files generated during the PDB creation process can be stored.
In the Custom Scripts section, select a custom SQL script you want to run as part of this procedure, once the PDB is created.
Figure 16-5 displays the Storage page.
Click Next.
In the Schedule page, enter a unique deployment procedure instance name and a schedule for the deployment. The instance name you enter here helps you identify and track the progress of this procedure on the Procedure Activity page.
If you want to run the procedure immediately, then retain the default selection, that is, Immediately. Otherwise, select Later and provide time zone, start date, and start time details.
You can optionally set a grace period for this schedule. A grace period is a period of time that defines the maximum permissible delay when attempting to run a scheduled procedure. If the procedure does not start within the grace period you have set, then the procedure skips running. To set a grace period, select Grace Period, and set the permissible delay time.
Figure 16-6 displays the Schedule page.
Click Next.
In the Review page, review the details you have provided for the deployment procedure. If you are satisfied with the details, click Submit.
If you want to modify the details, then click Back repeatedly to reach the page where you want to make the changes.
Figure 16-7 displays the Review page.
In the Procedure Activity page, view the status of the procedure. Click the Status link for each step to view the details of the execution of each step. You can click Debug to set the logging level to Debug, and click Stop to stop the procedure execution.
Figure 16-8 displays the Procedure Activity page.
When you create a new PDB, the Enterprise Manager job system creates a Create Pluggable Database job. For information about viewing the details of this job, refer Viewing Create Pluggable Database Job Details.
This section provides information about plugging in an unplugged PDB into a CDB. In particular, it contains the following:
Before plugging in an unplugged PDB, ensure that you meet the following prerequisites:
Oracle Software Library (Software Library) must be set up in Cloud Control.
For information on how to set up Software Library in Cloud Control, refer Setting Up Oracle Software Library.
The target CDB (the CDB within which you want to plug in the unplugged PDB) must exist, and must be a Cloud Control target.
Note:
For information on how to create a new CDB, refer to Chapter 15.The target CDB must not be in read-only, upgrade, or downgrade mode.
The XML file that describes the unplugged PDB, and the other files associated with the unplugged PDB, such as the datafiles and the wallet file, must exist and must be readable.
The target host user must be the owner of the Oracle home that the CDB (within which you want to plug in the unplugged PDB) belongs to.
The platforms of the source CDB host (the host on which the CDB that previously contained the unplugged PDB is installed) and the target CDB host (the host on which the target CDB is installed) must have the same endianness, and must have compatible database options installed.
The source CDB (the CDB that previously contained the unplugged PDB) and the target CDB must have compatible character sets and national character sets. Every character in the source CDB character set must be available in the target CDB character set, and the code point value of every character available in the source CDB character set must be the same in the target CDB character set.
To plug in an unplugged PDB to a CDB, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Database Provisioning. In the Database Provisioning page, in the Related Links section of the left menu pane, click Provision Pluggable Databases.
Note:
You can also access the Provision Pluggable Database Console from the home page of the CDB. To do so, in the CDB's home page, from the Oracle Database menu, select Provisioning, then select Provision Pluggable Database.In the Provision Pluggable Database Console, in the CDB section, select the CDB to which you want to add the unplugged PDBs.
Note:
Skip this step if you have accessed the Provision Pluggable Database Console from the CDB's home page.In the PDB Operations section, select Create Pluggable Databases.
Click Launch.
Figure 16-9 displays the Provision Pluggable Database Console.
Note:
You will be prompted to log in to the database if you have not already logged in to it through Enterprise Manager. Make sure you log in using sysdba user account credentials.In the Source page of the Create Pluggable Database Wizard, in the Source Type section, select Plug an unplugged PDB.
In the CDB Host Credentials section, select or specify the target CDB Oracle home owner host credentials. If you have already registered the credentials with Enterprise Manager, you can select Preferred or Named. Otherwise, you can select New and enter the credentials.
Figure 16-10 displays the Source page.
Click Next.
In the Identification page, enter a unique name for the PDB you are plugging in.
Select Create As Clone to ensure that Oracle Database generates unique PDB DBID, GUID, and other identifiers expected for the new PDB.
If you prefer to create more than one PDB in this procedure, then select Create Multiple PDBs, and set the number of PDBs you want to create. Note that you can create a maximum of 252 PDBs.
Note:
If you choose to create multiple PDBs, then the unique name you enter here is used as a prefix for all PDBs, and the suffix is a numeric value that indicates the count of PDBs.For example, if you create five PDBs with the name accountsPDB, then the PDBs are created with the names accountsPDB1, accountsPDB2, accountsPDB3, accountsPDB4, and accountsPDB5.
In the PDB Administrator section, do one of the following to administer the PDB:
If you prefer to use the admin user account that was created as part of the source PDB that you are plugging in, then deselect Create Pluggable Database Administrator.
If you want to create a brand new admin user account for the PDB you are plugging in, then select Create Pluggable Database Administrator, and enter the desired credentials.
Note:
If you choose to create multiple PDBs, then for each PDB an admin user account is created with the same set of credentials you retain or enter here. So multiple admin user accounts are created, one per PDB, but the user accounts have the same credentials.To lock and expire all the users in the newly created PDB, (except the newly created Admin), select Lock All Existing PDB Users.
Figure 16-11 displays the Identification page.
In the PDB Template Location section, select the location where the source PDB's template is available, and then select the type of PDB template.
If the PDB template is available on your CDB host (CDB to which you are plugging in the unplugged PDB), then select Target Host File System.
If the PDB template is a single archive file—a TAR file with datafiles and metadata XML file included in it, then select Create Pluggable Database from Pluggable Database Archive, then select the PDB template.
If the PDB template is a PDB file set—a separate DFB file with all the datafiles and a separate metadata XML file, then select Create Pluggable Database using Pluggable Database File Set, then select the DBF and XML files.
If you want to plug in a PDB using the PDB metadata XML file and the existing datafiles, then select Create Pluggable Database using Metadata file.
If the PDB template is available in Oracle Software Library (Software Library), then select Software Library, then select the component in the Software Library that contains the PDB template.
Figure 16-12 displays the PDB Template Location section of the Identification page.
Click Next.
In the Storage page, do one of the following:
In the previous page, if you chose to create the PDB from a pluggable database archive (single TAR file) or using a pluggable database file set (DFB file and an XML file), then select the type of location where you want to store the target datafiles for the PDB you are plugging in.
If the target CDB (CDB to which you are plugging in the unplugged PDB) is enabled with Oracle Managed Files and if you want to use the same, then select Use Oracle Managed Files (OMF).
If you want to enter a common custom location, then select Use Common Location for PDB datafiles. Select the storage type and the location where the datafiles can be stored.
In the previous page, if you chose to create the PDB using a pluggable database template (XML file only), then do the following:
In the Pluggable Database File Location section, validate the locations mapped for the datafiles. If they are incorrect, correct the paths. Alternatively, if you have a single location where the datafiles are all available, then enter the absolute path in the Set Common Source File Mapping Location field, and click Set.
You can choose to store the target datafiles for the PDB you are plugging in, in the same location as the source datafiles. However, if you want the target datafiles to be stored in a different location, then select Copy Datafiles, and select the type of location:
If the target CDB (CDB to which you are plugging in the unplugged PDB) is enabled with Oracle Managed Files and if you want to use the same, then select Use Oracle Managed Files (OMF).
If you want to enter a common custom location, then select Use Common Location for Pluggable Database Files. Select the storage type and the location where the datafiles can be stored.
If you prefer to use different custom locations for different datafiles, then select Customized Location, and enter the custom location paths.
In the Temporary Working Directory section, enter a location where the temporary files generated during the PDB creation process can be stored.
In the Custom Scripts section, select a custom SQL script you want to run as part of this procedure, once the PDB is plugged in.
If the script is available in the Software Library, select Select from Software Library, then select the component that contains the custom script.
Figure 16-13 displays the Storage page.
Click Next.
In the Schedule page, enter a unique deployment procedure instance name and a schedule for the deployment. The instance name you enter here helps you identify and track the progress of this procedure on the Procedure Activity page.
If you want to run the procedure immediately, then retain the default selection, that is, Immediately. Otherwise, select Later and provide time zone, start date, and start time details.
You can optionally set a grace period for this schedule. A grace period is a period of time that defines the maximum permissible delay when attempting to run a scheduled procedure. If the procedure does not start within the grace period you have set, then the procedure skips running. To set a grace period, select Grace Period, then set the permissible delay time.
Figure 16-14 displays the Schedule page.
Click Next.
In the Review page, review the details you have provided for the deployment procedure. If you are satisfied with the details, click Submit.
If you want to modify the details, then click Back repeatedly to reach the page where you want to make the changes.
Figure 16-15 displays the Review page.
In the Procedure Activity page, view the status of the procedure. Click the Status link for each step to view the details of the execution of each step. You can click Debug to set the logging level to Debug, and click Stop to stop the procedure execution.
Figure 16-16 displays the Procedure Activity page.
When you plug in an unplugged PDB, the Enterprise Manager job system creates a Create Pluggable Database job. For information about viewing the details of this job, refer Viewing Create Pluggable Database Job Details.
This section provides information about cloning a PDB. In particular, it contains the following:
Important:
You can clone a PDB only to the source CDB (the CDB containing the PDB that you are cloning). Cloning a PDB to a CDB other than the source CDB is not supported.To clone a PDB to the source CDB, you must meet the following prerequisites:
Oracle Software Library (Software Library) must be set up in Cloud Control.
For information on how to set up Software Library in Cloud Control, refer Setting Up Oracle Software Library.
The source PDB (the PDB that you want to clone) must exist, and must be a Cloud Control target.
Note:
For information on how to create a new PDB, refer to Creating a New Pluggable Database.The source PDB must be open.
The source CDB must not be in read-only, upgrade, or downgrade mode.
The target host user must be the owner of the Oracle home that the source CDB belongs to.
To clone an existing PDB to the source CDB, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Database Provisioning. In the Database Provisioning page, in the Related Links section of the left menu pane, click Provision Pluggable Databases.
Note:
You can also access the Provision Pluggable Database Console from the home page of the CDB. To do so, in the CDB's home page, from the Oracle Database menu, select Provisioning, then select Provision Pluggable Database.In the Provision Pluggable Database Console, in the CDB section, select the source CDB, that is, the CDB containing the PDB that you want to clone.
Note:
Skip this step if you have accessed the Provision Pluggable Database Console from the CDB's home page.In the PDB Operations section, select Create Pluggable Databases.
Click Launch.
Figure 16-17 displays the Provision Pluggable Database Console.
Note:
You will be prompted to log in to the database if you have not already logged in to it through Enterprise Manager. Make sure you log in using sysdba user account credentials.In the Source page of the Create Pluggable Database Wizard, in the Source Type section, select Clone PDB. Then, select the PDB you want to clone.
In the CDB Host Credentials section, select or specify the source CDB Oracle Home owner host credentials. If you have already registered the credentials with Enterprise Manager, you can select Preferred or Named. Otherwise, you can select New and enter the credentials.
Figure 16-18 displays the Source page.
Click Next.
In the Identification page, enter a unique name for the PDB you are cloning.
If you prefer to create more than one PDB in this procedure, then select Create Multiple PDBs, and set the number of PDBs you want to create. Note that you can create a maximum of 252 PDBs.
Note:
If you choose to create multiple PDBs, then the unique name you enter here is used as a prefix for all the cloned PDBs, and the suffix is a numeric value that indicates the count of PDBs.For example, if you create five PDBs with the name accountsPDB, then the PDBs are created with the names accountsPDB1, accountsPDB2, accountsPDB3, accountsPDB4, and accountsPDB5.
In the PDB Administrator section, do one of the following to administer the PDB:
If you prefer to use the admin user account that was created as part of the source PDB that you are cloning, then deselect Create Pluggable Database Administrator.
If you want to create a brand new admin user account for the PDB you are cloning, then select Create Pluggable Database Administrator, and enter the desired credentials.
Figure 16-19 displays the Identification page.
Note:
If you choose to create multiple PDBs, then for each PDB an admin user account is created with the same set of credentials you retain or enter here. So multiple admin user accounts are created, one per PDB, but the user accounts have the same credentials.In the Source CDB Login Credentials section, select or specify the login credentials of the source CDB. If you have already registered the credentials with Enterprise Manager, you can select Preferred or Named. Otherwise, you can select New and enter the credentials.
The credentials are used to bring the source PDB to read-only mode before the cloning operation begins, and to restore it to the original state after the cloning operation ends.
Figure 16-20 displays the Source CDB Login Credentials section of the Identification page.
Click Next.
In the Storage page, select the type of location where you want to store the datafiles for the PDB you are cloning.
If the source CDB is enabled with Oracle Managed Files and if you want to use the same, then select Use Oracle Managed Files (OMF).
If you want to enter a custom location, then select Use Common Location for PDB datafiles. Select the storage type and the location where the datafiles can be stored.
In the Temporary Working Directory section, enter a location where the temporary files generated during the PDB creation process can be stored.
In the Custom Scripts section, select a custom SQL script you want to run as part of this procedure, once the PDB is cloned.
Figure 16-21 displays the Storage page.
Click Next.
In the Schedule page, enter a unique deployment procedure instance name and a schedule for the deployment. The instance name you enter here helps you identify and track the progress of this procedure on the Procedure Activity page.
If you want to run the procedure immediately, then retain the default selection, that is, Immediately. Otherwise, select Later and provide time zone, start date, and start time details.
You can optionally set a grace period for this schedule. A grace period is a period of time that defines the maximum permissible delay when attempting to run a scheduled procedure. If the procedure does not start within the grace period you have set, then the procedure skips running. To set a grace period, select Grace Period, and set the permissible delay time.
Figure 16-22 displays the Schedule page.
Click Next.
In the Review page, review the details you have provided for the deployment procedure. If you are satisfied with the details, click Submit.
If you want to modify the details, then click Back repeatedly to reach the page where you want to make the changes.
Figure 16-23 displays the Review page.
In the Procedure Activity page, view the status of the procedure. Click the Status link for each step to view the details of the execution of each step. You can click Debug to set the logging level to Debug, and click Stop to stop the procedure execution.
Figure 16-24 displays the Procedure Activity page.
When you clone a PDB, the Enterprise Manager job system creates a Create Pluggable Database job. For information about viewing the details of this job, refer Viewing Create Pluggable Database Job Details.
This section provides information about migrating a non-CDB as a PDB. In particular, it contains the following:
Before migrating a non-CDB as a PDB, ensure that you meet the following prerequisites:
Oracle Software Library (Software Library) must be set up in Cloud Control.
For information on how to set up Software Library in Cloud Control, refer Setting Up Oracle Software Library.
The target CDB (the CDB to which you want to migrate a non-CDB as a PDB) must exist, and must be a Cloud Control target.
Note:
For information on how to create a new CDB, refer to Chapter 15.The target CDB must not be in read-only, upgrade, or downgrade mode.
The database administrators of the database you want to migrate, and the target CDB must have SYSDBA privileges.
The target host user must be the owner of the Oracle home that the target CDB belongs to.
To migrate a non-CDB as a PDB, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Database Provisioning. In the Database Provisioning page, in the Related Links section of the left menu pane, click Provision Pluggable Databases.
Note:
You can also access the Provision Pluggable Database Console from the home page of the CDB. To do so, in the CDB's home page, from the Oracle Database menu, select Provisioning, then select Provision Pluggable Database.In the Provision Pluggable Database Console, in the CDB section, select the CDB to which you want to migrate a non-CDB as a PDB.
Note:
Skip this step if you have accessed the Provision Pluggable Database Console from the CDB's home page.In the PDB Operations section of the Provision Pluggable Database page, select the Migrate Existing Databases option and click Launch.
Figure 16-25 displays the Provision Pluggable Database Console.
On the Database Login page, select the Credential Name from the drop-down list. Click Login.
On the Migrate Non-CDBs launch page, select a Data Migration Method (Export/Import or Plug as a PDB). Enter the appropriate information for the Oracle Home Credential section.
Click Next.
Figure 16-26 displays the Method page.
On the Database page, select a Non-CDB to be migrated. You can select more than one. Click Add. In the database pane, provide the appropriate credential, properties, export, import, and datafile location information. Click Next.
Figure 16-27 displays how to select the non-CDB you want to migrate.
Figure 16-28 displays how to specify the database and database host credentials.
Figure 16-29 displays how to specify the stage location for migration.
Figure 16-30 displays how to specify the PDB administrator details and datafile location.
Figure 16-31 displays how to specify the import directory.
On the Schedule page, enter the appropriate job and scheduling details. Click Next.
Figure 16-32 displays the Schedule page.
On the Review page, review all details entered. If there are no changes required, click Submit.
Figure 16-33 displays the Review page.
This section provides information about unplugging and dropping a PDB. In particular, it contains the following:
Before unplugging and dropping a PDB, ensure that you meet the following prerequisites:
Oracle Software Library (Software Library) must be set up in Cloud Control.
For information on how to set up Software Library in Cloud Control, refer Setting Up Oracle Software Library.
The PDB that you want to unplug and drop must have been opened at least once.
The target host user must be the owner of the Oracle home that the CDB (containing the PDB that you want to unplug and drop) belongs to.
To unplug a PDB from its CDB, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Database Provisioning. In the Database Provisioning page, in the Related Links section of the left menu pane, click Provision Pluggable Databases.
Note:
You can also access the Provision Pluggable Database Console from the home page of the CDB. To do so, in the CDB's home page, from the Oracle Database menu, select Provisioning, then select Provision Pluggable Database.In the Provision Pluggable Database Console, in the CDB section, select the CDB from which you want to unplug the PDBs.
Note:
Skip this step if you have accessed the Provision Pluggable Database Console from the CDB's home page.In the PDB Operations section, select Unplug Pluggable Database.
Click Launch.
Figure 16-34 displays the Provision Pluggable Database Console.
Note:
You will be prompted to log in to the database if you have not already logged in to it through Enterprise Manager. Make sure you log in using sysdba user account credentials.In the Select PDB page of the Unplug Pluggable Database Wizard, in the Select Pluggable Database section, select the PDB you want to unplug. Note that the PDB once unplugged will be stopped and dropped.
In the CDB Host Credentials section, select or specify the target CDB Oracle Home owner host credentials. If you have already registered the credentials with Enterprise Manager, you can select Preferred or Named. Otherwise, you can select New and enter the credentials.
Figure 16-35 displays the Select PDB page.
In the Destination page, select the type of PDB template you want to generate for unplugging the PDB, and the location where you want to store it. The PDB template consists of all datafiles as well as the metadata XML file.
If you want to store the PDB template on your CDB host (CDB from where you are unplugging the PDB), then select Target Host File System.
If you want to generate a single archive file—a TAR file with the datafiles and the metadata XML file included in it, then select Generate PDB Archive. Select a location where the archive file can be created.
Note:
Oracle recommends you to select this option if the source and target CDBs are using file system for storage. This option is not supported for PDBs using ASM as storage.If you want to generate an archive file set—a separate DFB file with all the datafiles and a separate metadata XML file, then select Generate PDB File Set. Select the locations where the DBF and XML files can be created.
Note:
Oracle recommends you to select this option if the source and target CDBs are using ASM for storage.If you want to generate only a metadata XML file, leaving the datafiles in their current location, then select Generate PDB Metadata File. Select a location where the metadata XML file can be created.
If you want to store the PDB template in Oracle Software Library (Software Library), then select Software Library.
If you want to generate a single archive file—a TAR file with the datafiles and the metadata XML file included in it, then select Generate PDB Archive. If you want to generate an archive file set—a separate DFB file with all the datafiles and a separate metadata XML file, then select Generate PDB File Set. If you want to generate only a metadata XML file, leaving the datafiles in their current location, then select Generate PDB Metadata File.
Enter a unique PDB template name.
The template is created in the default location that has the following format:
Database Configuration/<db_release>/<platform>/Database Templates
For example,
Database Configuration/12.1.0.0.2/unix/Database Templates
Enter a temporary location where the archive can be created by Enterprise Manager before it is uploaded to the Software Library.
Figure 16-36 displays the Destination page.
In the Schedule page, enter a unique deployment procedure instance name and a schedule for the deployment. The instance name you enter here helps you identify and track the progress of this procedure on the Procedure Activity page.
If you want to run the procedure immediately, then retain the default selection, that is, Immediately. Otherwise, select Later and provide time zone, start date, and start time details.
You can optionally set a grace period for this schedule. A grace period is a period of time that defines the maximum permissible delay when attempting to run a scheduled procedure. If the procedure does not start within the grace period you have set, then the procedure skips running. To set a grace period, select Grace Period, and set the permissible delay time.
Figure 16-37 displays the Schedule page.
Click Next.
In the Review page, review the details you have provided for the deployment procedure. If you are satisfied with the details, click Submit.
If you want to modify the details, then click Back repeatedly to reach the page where you want to make the changes.
Figure 16-38 displays the Review page.
In the Procedure Activity page, view the status of the procedure. Click the Status link for each step to view the details of the execution of each step. You can click Debug to set the logging level to Debug, and click Stop to stop the procedure execution.
Figure 16-39 displays the Procedure Activity page.
When you unplug and drop a PDB, the Enterprise Manager job system creates an Unplug Pluggable Database job. For information about viewing the details of this job, refer Viewing Unplug Pluggable Database Job Details.
This section provides information about viewing the details of the jobs that are created by the Enterprise Manager job system when you create a PDB or unplug a PDB. It contains the following:
To view the details of a create PDB job, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Procedure Activity.
Click the deployment procedure that contains the required create PDB job.

Expand the deployment procedure steps. Select the create PDB job.

From the Step Output menu, select Job Summary.

To view a summary of the job details, click Summary.
In the Prepare Configuration Data step, the system prepares for PDB creation.
In the Check Prerequisites step, the system checks the prerequisites for PDB creation.
In the Verify and Prepare step, the system runs tasks prior to PDB creation.
In the Perform Configuration step, the PDB creation is performed. For details of the performed tasks and their status, refer to the remote log files present on the host.
In the Post Configuration step, Enterprise Manager is updated with the newly created PDB details, and the custom scripts are run.
To view a visual representation of the create PDB job progress, click Results.
In the Configuration Progress section, you can view the completion percentage of the job, and a list of pending, currently running, and completed job steps. You can also view errors, warnings, and logs. The tail of the log for the currently running job step is displayed.
To view the details of an unplug PDB job, follow these steps:
From the Enterprise menu, select Provisioning and Patching, then select Procedure Activity.
Click the deployment procedure that contains the required unplug PDB job.

Expand the deployment procedure steps. Select the unplug PDB job.

From the Step Output menu, select Job Summary.

To view a summary of the job details, click Summary.
In the Prepare Configuration Data step, the system prepares for unplugging a PDB.
In the Check Prerequisites step, the system checks the prerequisites for unplugging a PDB.
In the Verify and Prepare step, the system runs tasks prior to unplugging the PDB.
In the Perform Configuration step, the PDB unplugging is performed. For details of the performed tasks and their status, refer to the remote log files present on the host.
In the Post Configuration step, Enterprise Manager is updated with the unplugged PDB details.
To view a visual representation of the unplug PDB job progress, click Results.
In the Configuration Progress section, you can view the completion percentage of the job, and a list of pending, currently running, and completed job steps. You can also view errors, warnings, and logs. The tail of the log for the currently running job step is displayed.
This section provides information about performing PDB administration tasks. It contains the following:
If you are performing a task such as granting user privileges or performance reporting, and you need to perform the same task on another pluggable database, then you can switch to another pluggable database. To switch between pluggable databases while staying on the same feature page:
From the current pluggable database, select any pluggable database scope page (such as, Manage Advanced Queues).
In the upper-left corner of the window, the name of the pluggable database will update to display a context switcher as a drop-down menu.
Click the context switcher to display the drop-down menu. This menu shows the pluggable databases most recently used.
Select a pluggable database from this list.
The page will update to show the System Queues.
Click the context switcher to display the drop-down menu. If the menu does not show the pluggable databases you want, then select All Containers.
A Switch Container window will pop up to display all available pluggable databases for the monitored target.
Select a pluggable database from this list and click OK.
The page will update to show data for the selected pluggable database.
To change the state of a single-instance pluggable database to Open or Close:
From the Oracle Database menu, select Control, then select Open/Close Pluggable Database.
From the Open/Close Pluggable Database page, select a pluggable database from the list.
Click the Action drop-down menu and select the appropriate actions. Your choices are Open, Open Read Only, and Close.
In the Confirmation dialog window, click Yes to complete the change. A Processing dialog window appears to show you the progress of your choice.
Once state change completes, the Open/Close Pluggable Database page will update to show the new state of the pluggable database.
To change the state of a pluggable database in a Cluster/RAC to Open or Close:
From the Oracle Database menu, select Control, then Open/Close Pluggable Database.
From the Open/Close Pluggable Database page, select a pluggable database from the list. The RAC instances are shown along with the pluggable database's current state on those instances.
Once you select a pluggable database, a panel appears below the list to show the state of the pluggable databases on the different RAC instances. The open and close options apply to the pluggable databases on the RAC instance's panel. You can open or close a pluggable database on any number of available RAC instances.
In the Confirmation dialog window, click Yes to complete the change. A Processing dialog window appears to show you the progress of your choice.
Once state change completes, the Open/Close Pluggable Database page will update to show the new state of the pluggable database.